package com.example.elderlycare.controller;

import com.example.elderlycare.service.BigScreenService;
import com.example.elderlycare.service.entity.BigScreenResponseBody;
import com.example.elderlycare.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
@RequestMapping("/screen")
public class BigScreenController {
    @Resource
    BigScreenService bigScreenService;

    @GetMapping
    public Result<BigScreenResponseBody> getBigScreenData() {
        BigScreenResponseBody res = bigScreenService.getBigScreenData();
        return Result.success(res);
    }
}
